# Contributor: Rob Blanckaert <basicer@gmail.com>
# Maintainer: Rob Blanckaert <basicer@gmail.com>
pkgname=bake
pkgver=2.5.1
pkgrel=0
pkgdesc="A build system that lets you clone, build and run C/C++ projects with a single command"
url="https://github.com/SanderMertens/bake"
# other architectures unsupported
arch="x86 x86_64 armv7 armhf aarch64"
license="GPL-3.0-or-later"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/SanderMertens/bake/archive/refs/tags/$pkgver.tar.gz
	01-no-backtrace-on-musl.patch
	"
# no tests
options="!check"

build() {
	make -C build-Linux
}

package() {
	install -Dm755 bake "$pkgdir"/usr/bin/bake
}

sha512sums="
22942f157cf3e54fb6418a93bcfc940a538894ca56551b93bcb0c0bb5e907614a6b67f06e79046aa55e8649a4ef59012a8bc4912898e772d4a75b05af06d31cc  bake-2.5.1.tar.gz
e42652d91c047baf398c53ac6a6761381482a23bdf5dabb85c552dd816517084cd7d03acf7dc72347625e164ccbad043416cd3e22e6af8f707f36648d994949a  01-no-backtrace-on-musl.patch
"
